//: \+..\..\dmdscript \$dmd2

package 
	import
	dmdscript.text,
	dmdscript.darray,
	dmdscript.script,
	dmdscript.program,
	dmdscript.errmsgs,
	dmdscript.value,
	dmdscript.dobject,
	dmdscript.dfunction,
	dmdscript.property,
	dmdscript.threadcontext,
	dmdscript.dnative;

package import
	std.datetime,
	std.path,
	std.stdio,
	std.exception,
	std.c.stdlib,
	std.path,
	std.file,
	std.stream,
	std.traits;


void main(){
	auto scriptfile = `big_fn.js` ;
	auto dat = cast(string) std.file.read(scriptfile);
	StopWatch sw;
	sw.start;
	auto program = new Program ;
	program.compile(scriptfile, assumeUnique( dat ), null) ;
	program.execute(null);
	writefln("%dms", sw.peek.msecs);
}